package com.designoutput.ui
{
	import com.designoutput.ui.newControls.ControlBase;
	
	import flash.text.TextField;
	import flash.text.TextFormat;

	public class CardFaceEditorSizeInfo extends ControlBase
	{
		private var _cardSizeInfor:TextField;
		
		override protected function initialize():void {
			_cardSizeInfor = new TextField();
			_cardSizeInfor.defaultTextFormat = new TextFormat("Verdana,Helvetica,San-serif", 10, 0, false, false, false, null, null, "center");
			_cardSizeInfor.height = 18;
			_cardSizeInfor.multiline = false;
			_cardSizeInfor.selectable = false;
			addChild(_cardSizeInfor);
			
			_height = 16;
		}
		
		override protected function updateDisplay():void {
			super.updateDisplay();
			
			_cardSizeInfor.width = _width;
			_cardSizeInfor.x = 0;
			_cardSizeInfor.y = 0;
			graphics.clear();
			graphics.beginFill(0xEDF7F9);
			graphics.drawRect(0, 0, _width, _height);
		}
		
		public function get text():String {
			return _cardSizeInfor.text;
		}
		
		public function set text(value:String):void {
			_cardSizeInfor.text = value;
		}
	}
}